home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / hardware-part1 / 121 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.7 KB

  1. Path: ARISTOTLE.CS.UREGINA.CA!bayko
  2. From: bayko@ARISTOTLE.CS.UREGINA.CA (John  Bayko)
  3. Newsgroups: comp.sys.amiga.hardware
  4. Subject: Re: [Q] Can a chip be optimized for graphics?
  5. Date: 2 Jan 1996 21:44:18 GMT
  6. Organization: University of Regina
  7. Message-ID: <4cc8vi$a9g@sue.cc.uregina.ca>
  8. References: <4c1t9l$2n3@decaxp.harvard.edu>
  9. NNTP-Posting-Host: aristotle.cs.uregina.ca
  10.  
  11. In article <4c1t9l$2n3@decaxp.harvard.edu>,
  12.     Zorro  <berriz@husc.harvard.edu> wrote:
  13. >
  14. >I know very little about computer architecture, and I'm confused about
  15. >two seemingly contradictory statements I've heard.  One goes: "certain
  16. >computer chips are optimized for fast graphics".  The other one
  17. >states: "the speed of the graphics is entirely independent of the
  18. >chip's speed, and depends solely on the speed of video card".  Is any
  19. >of these statements correct?
  20.  
  21.     "Graphics" can mean a lot of things, and can be implemented in many
  22. ways, so both those statements are true in different ways. Paint
  23. programs, image processing, and most games work directly on bitmapped
  24. images stored in memory and displayed on screen (or printed out).
  25. Drawing programs and simple CAD programs work on graphics primitives,
  26. such as lines, polygons and circles, which are rendered to create
  27. images. 3-D CAD programs and some games like DOOM create 3-D
  28. primitives (curved surfaces, 3-D polygons) which are converted to 2-D,
  29. then converted to images. And finally, programs use techniques like ray
  30. tracing to convert from 3-D images directly to images (this is much
  31. slower than converting to 2-D, then rendering, but produces much more
  32. realistic images).
  33.     Here's a graph of how they relate, and where CPUs or graphics
  34. hardware are usually involved:
  35.  
  36.                 Image on screen
  37.                        ^
  38.     (display resolution|display hardware
  39.        depends on this)|
  40.                        |
  41.                  Image in memory
  42.                   ^            ^
  43.                  /              \
  44.       Rendering:|CPU or graphics \
  45.        (shading)|hardware         \
  46.                 |                  \
  47.            2-D image                \ Ray tracing
  48.    (lines, polygons, circles)        >(CPU only)
  49.                 ^                   /
  50.  Convert to 2-D:|CPU (or hardware  /
  51.  shadow mapping,|in high end      /
  52.  reflections,   |workstations)   /
  53.  etc.           |               /
  54.                  \             /
  55.                     3-D image
  56.            (spheres, polygons, surfaces)
  57.              (image maps, texture maps)
  58.  
  59.     Amigas have hardware to help with rendering, but no 3-D support -
  60. the CPU does the work there. Macintoshes and PCs typically have no
  61. hardware support, so the CPU does rendering as well as higher stuff.
  62. Add-in cards with graphics support are widely available, though.
  63.     Many workstations have hardware that can transform 3-D objects to
  64. 2-D, and render 2-D objects faster than the CPU can, but more
  65. affordable ones usually don't. However, the CPUs are usually fast
  66. enough that they can do the job faster than graphics hardware in
  67. personal computers.
  68.     Some recent CPUs have added instructions for graphics operations.
  69. The i860 has instructions for Z-buffering (which prevents distant
  70. objects from being drawn in front of objects closer to the viewpoint,
  71. when rendering 2-D objects converted from 3-D objects). And the
  72. UltraSparc CPU has instructions which can operate on groups of 4
  73. bytes simultaneously, which can quadruple the speed when rendering
  74. MPEG animation files.
  75.     680x0 and Intel 80x86 processors don't have any instructions like
  76. this, not even the new ones, but Intel is apparently going to add some
  77. to new Pentium Pro CPUs.
  78.     I hope this helps a bit...
  79.  
  80. -- 
  81. John Bayko (Tau).
  82. bayko@cs.uregina.ca
  83. http://www.cs.uregina.ca/~bayko
  84.